package moonstruckdrops.dto;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class ComentDto implements Serializable{
	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	Long ComentID;
	@Persistent
	Long EntryID;
	@Persistent
	String userName;
	@Persistent
	Date date;
	@Persistent
	Text Coment;
	
	public ComentDto(){
		userName="";
		date=null;
		Coment=new Text("");
	}
	
	public ComentDto(String userName,Date date,Text Coment){
		this.userName=userName;
		this.date=date;
		this.Coment=Coment;
	}

	public Long getComentID() {
		return ComentID;
	}

	public void setComentID(Long comentID) {
		ComentID = comentID;
	}

	public Long getEntryID() {
		return EntryID;
	}

	public void setEntryID(Long entryID) {
		EntryID = entryID;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Text getComent() {
		return Coment;
	}

	public void setComent(Text coment) {
		Coment = coment;
	}
}
